

        <g:set var="entityName" value="${message(code: 'score.label', default: 'Score')}" />
             
           <input type="hidden" name="classesId" value="${classes?.id}"> 
           <input type="hidden" name="term" value="${term}"> 
           <input type="hidden" name="grade" value="${grade}"> 
           <input type="hidden" name="team" value="${team}"> 
            
            <div class="list"> 
                <table> 
                    <tbody>
                    <g:each in="${history}" status="i" var="studentInstance">
                        <g:if test="${i % 10 == 0}">
                        <tr> 
                             <th>学生</th>
                   	        <g:each in="${courses}" var="course">
 
                            <th><g:link action="top" params="[classesId  : classes?.id ,course: courses ,term :term ,grade : grade , team : team ,sort :  course ]">${course}</g:link></th>
                            </g:each> 
                            <th><g:link action="top" params="[classesId  : classes?.id ,course: courses ,term :term ,grade : grade , team : team ,sort :  'total' ]">总分</g:link></th>
                        </tr>
                        </g:if>

                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td>${studentInstance[0]}
                   
                            </td>
                            <g:each in="${courses}" var="course">
                            <%
                            def temp = studentInstance[1].find{ it.course == course }
                            %>
                            <td> 
                                ${course}:  ${temp?.score}
                            </td>
                            </g:each>
                            
                            <td> 
                                ${studentInstance[2]}
                            </td>
                            
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
             <div class="buttons">
                    <span class="button"><input type="button" value="打印" onclick="javascript:print()"></span>
             </div>
       
